package org.benxiong.iplay.util;

import java.util.ArrayList;
import java.util.List;

import org.benxiong.iplay.data.DataArchive;
import org.benxiong.iplay.data.GlobalMemoryDataArchive;
import org.benxiong.iplay.model.UserThumbnail;
import org.benxiong.iplay.ui.BaseActivity;

import android.app.Activity;
import android.content.Context;
import android.location.Location;

public class GlobalVar {
	public static String				environment			= "dev";
	// default production variables
	public static String				photoRootUrl		= "http://photos.gayddit.com";

	static {
		if (environment.equals("dev")) {
			photoRootUrl = "http://s3-us-west-2.amazonaws.com/1.gayddit.com.dev1/photo.my.dev1";
		}
	}

	// application context
	public static Context				appContext;

	public static final GlobalMemoryDataArchive		dataArchive			= new GlobalMemoryDataArchive();
	// always update current location
	public static Location				currentLocation;

	// user id(Integer)
	public static int					userId;

	// login name
	public static String				userName;

	// login user password
	public static String				password;

	public static BaseActivity			currentActivity;

	public static List<Activity>		activityList		= new ArrayList<Activity>();

	public static long					lastDownload		= -1L;

	public static boolean				isNetworkConnected	= false;

	public static boolean				hasNewVersion;

	public static String				apkName;

	public static String				downloadUrl;

	public static String				downloadContent;

	public static String				tokenId;

	public static List<UserThumbnail>	liveMemberList		= new ArrayList<UserThumbnail>();

}
